package com.joysuch.wwyt.datadump.biz.convertor;

import cn.zlg.common.datadump.annotation.DataDumpField;
import cn.zlg.common.datadump.convertor.FieldValueConvert;
import com.joysuch.wwyt.edu.enums.VideoTypes;
import org.springframework.stereotype.Component;

/**
 * @author xsx
 * @version 1.0
 * @date 2022/12/12 14:27
 */
@Component
public class ExportSystemVideoTypeConvertor implements FieldValueConvert<String, String> {

    @Override
    public String convert(Object bean, String value, DataDumpField dataField) {
        return VideoTypes.findNameByCode(value)==null?"tcp":VideoTypes.findNameByCode(value);
    }

}
